package com.olek;

import java.io.File;

public class Model {
	
	private ModelFragment leftFragment;
	private ModelFragment rightFragment;
	
	public void onFragmentLoad(File[] pathRoot, File[] content, boolean isLeft) {
		if(isLeft) {
			leftFragment = new ModelFragment(pathRoot, content);
		} else {
			rightFragment = new ModelFragment(pathRoot, content);
		}
	}
	
	public ModelFragment getFragment(boolean isLeft) {
		if(isLeft) {
			return leftFragment;
		} else {
			return rightFragment;
		}
	}
	
	class ModelFragment {
		
		private File[] pathRoot;
		private File[] content;
		
		public ModelFragment(File[] pathRoot, File[] content) {
			super();
			this.pathRoot = pathRoot;
			this.content = content;
		}

		public File[] getPathRoot() {
			return pathRoot;
		}

		public File[] getContent() {
			return content;
		}

		public void setPathRoot(File[] pathRoot) {
			this.pathRoot = pathRoot;
		}

		public void setContent(File[] content) {
			this.content = content;
		}
		
		
	}
}
